/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import com.jiadakeji.ppm.common.persistence.DataEntity;
import com.jiadakeji.ppm.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 充值订单Entity
 * @author HHAOYU
 * @version 2019-08-14
 */
public class RechargeOrder extends DataEntity<RechargeOrder> {

	public static final String CHARGE_TYPE_CASH = "0";

	public static final String CHARGE_TYPE_WECHAT = "1";
	
	private static final long serialVersionUID = 1L;
	private String roomId;		// customer_id
	private String roomCode;
	private String buildingName;
	private String communityName;
	private String orderCode;		// order_code
	private String orderStatus;		// order_status
	private String orderType;		// order_type
	private Double payAmount;		// pay_amount
	private String prepareId;		// prepare_id
	private Long version;		// version
	private String cashier;		// 收费员

	private String customerName;

	private Customer customer;

	private User cashierEn;
	
	public RechargeOrder() {
		super();
	}

	public RechargeOrder(String id){
		super(id);
	}



	@Length(min=0, max=32, message="room_id长度必须介于 0 和 32 之间")
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public String getRoomCode() {
		return roomCode;
	}

	public void setRoomCode(String roomCode) {
		this.roomCode = roomCode;
	}

	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	@Length(min=0, max=32, message="order_code长度必须介于 0 和 32 之间")
	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	
	@Length(min=0, max=1, message="order_status长度必须介于 0 和 1 之间")
	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}
	
	@Length(min=0, max=1, message="order_type长度必须介于 0 和 1 之间")
	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}


	@NotNull
	public Double getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(Double payAmount) {
		this.payAmount = payAmount;
	}
	
	@Length(min=0, max=32, message="prepare_id长度必须介于 0 和 32 之间")
	public String getPrepareId() {
		return prepareId;
	}

	public void setPrepareId(String prepareId) {
		this.prepareId = prepareId;
	}
	
	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}
	
	@Length(min=0, max=32, message="收费员长度必须介于 0 和 32 之间")
	public String getCashier() {
		return cashier;
	}

	public void setCashier(String cashier) {
		this.cashier = cashier;
	}


	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public User getCashierEn() {
		return cashierEn;
	}

	public void setCashierEn(User cashierEn) {
		this.cashierEn = cashierEn;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
}